<?php
namespace Album\Form;

use Zend\Form\Form;

/**
 *
 * @author 李福强
 *        
 */
class AlbumForm extends Form
{

    /**
     * 构造函数
     */
    public function __construct ()
    {
    	parent::__construct('album');
    	$this->setAttribute('method', 'post');
    	$this->add(array(
    	    'name' => 'id',
    	    'attributes' => array(
    	        'type' => 'hidden',
    	    ),
    	));
    	
    	$this->add(array(
    	    'name' => 'artist',
    	    'attributes' => array(
    	        'type' => 'text',
    	    ),
    	    'options' => array(
    	       'label' => 'Artist',
    	    ),
    	));
    	
    	$this->add(array(
    			'name' => 'title',
    			'attributes' => array(
    					'type' => 'text',
    			),
    			'options' => array(
    					'label' => 'Title',
    			),
    	));
    	
    	$this->add(array(
    	    'name' => 'submit',
    	    'attributes' => array(
    	        'type' => 'Submit',
    	        'value' => 'Go',
    	        'id' => 'submitbutton',
    	    ),
    	));
    }
}

?>